// pages/component/PrivacyAuthor/PrivacyAuthor.js
const app = getApp()
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    showPrivacyAuthor: {
      value: false,
      type: Boolean,
    },
  },

  /**
   * 组件的初始数据
   */
  data: {
    brandName: app.globalData.global.brandName,
  },

  /**
   * 组件的方法列表
   */
  methods: {
    // 查看隐私协议
    openPrivacyCont(){
      wx.openPrivacyContract();
    },
    handleAgreePrivacyAuthorization(){
      console.log('触发父组件')
      this.triggerEvent('handleAgreePrivacyAuthorizations');
    },
    disagreePrivacyAuthorization(){
      this.triggerEvent('disagreePrivacyAuthorization');
    },
  }
})